Skip to content

dapf: take the T8132 handoff from the tree, not a board list - #429

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
kazuhidet:j715/dapf-handoff
Nov 25, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
kazuhidet:j715/dapf-handoff

Conversation

@kazuhidet

@kazuhidet kazuhidet commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What: take the T8132 DAPF handoff from the tree's /chosen properties instead of a J713/J604 board list in dapf_init_fdt(), so a J715 tree that names its MTP as a halted consumer gets the handoff.
Tested: J715 M4 Air at aura main 58e712b9 + this change (local-only J715 gates, see below), and again at main 8b1cb8ce + #494 + this change: MTP cold-started by Linux, keyboard and trackpad work, no DART faults. Not booted at 746c4cd9 itself.
Risk: two-way · M4 (T8132) Macs whose tree carries linux-enablement-mac,dapf-handoff: the laptops and, through t8132-jxxx.dtsi, the desktops
Not yet: a boot at this head; J713; a desktop T8132 (J773g).

Reworked as suggested: the T8132 board list in dapf_init_fdt() is gone, and dapf_init_j713() runs on every T8132 tree. Whether anything is handed off is decided by /chosen's linux-enablement-mac,dapf-handoff (and dapf-halted-handoff), as before. A tree without them keeps the firmware's filter state.

Behaviour change for other T8132 trees. In the current device trees, dapf-handoff sits in t8132-jxxx.dtsi (AOP, PMP) and t8132-laptop.dtsi (adds the MTP). So T8132 Macs other than the J713 and J604 that include those files now get the handoff as well. I could only test the J715.

Tested on a J715 (15-inch M4 Air), OS firmware 26.6.2, stage 1 → aura → Linux:

  • aura main 58e712b plus this change;
  • the J715 tree with linux-enablement-mac,dapf-halted-handoff = "/arm-io/mtp", mtp_dart apple,remap-streams = <1 0>, <2 0>, <3 0> and the MTP on stream 0, as t8132-j604.dts does (arm64: dts: apple: t8132-j715: hand the MTP over as a halted consumer linux#2745);
  • results: the MTP is cold-started by Linux ("MTP Says Hello"), with no DART faults; the keyboard and trackpad work; the AOP microphones, the display, the GPU and the speakers (speakerguardd v2) come up as before.

Local-only parts of that test, not in this PR:

Since the halted handoff covers the J715's MTP, #430 is no longer needed and I'll close it.

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, and for the J715 runs on 26.5 and 26.6.2. One change we'd ask for, under the project's no-board-gates rule: rather than add apple,j715 to the list, drop the list.

dapf_init_j713() (src/dapf.c:670 on main) already returns without touching anything unless /chosen carries linux-enablement-mac,dapf-handoff, and then hands off only the consumers that property lists (plus ...,dapf-power-on-handoff for power). So that property is already the contract, and your description says the J715 tree states it. The board list in dapf_init_fdt() only adds a second gate that every new M4 laptop or desktop has to be added to by hand (the J773g and the J715 today, the next one tomorrow).

Suggested shape: on T8132 call dapf_init_j713() directly and let its existing described check decide; a tree without the property keeps the firmware's DAPF state exactly as now. A host test for both cases (property present on a non-listed board: handoff; property absent: preserved) would cover it. If you'd rather keep this PR to one line, please at least say in the commit message why the property alone isn't enough.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor

Blockers: 1.

  1. src/dapf.c:775: the existing review's point stands. dapf_init_j713() already returns without touching anything unless /chosen has linux-enablement-mac,dapf-handoff (src/dapf.c:685-691 on main). It then hands off only the consumers that property names. So the board list adds nothing beyond the property, and every new T8132 Mac has to be added to it by hand. Please drop the list and call dapf_init_j713() on T8132. This PR then becomes the J715 evidence for that change.

Something that bears on the follow-up RFC #430 (which builds on this branch): the "MTP cold-started by Linux" case already has a property. A consumer that iBoot left off and Linux cold-starts is programmed as a halted consumer when the tree also lists it in linux-enablement-mac,dapf-halted-handoff (src/dapf.c:727-750, the J604's MTP). Only t8132-j604.dts sets that property today. If the J715 tree (aurora-silicon/linux#2663) adds /arm-io/mtp to dapf-halted-handoff, the stage1 -> aura -> Linux flow should get its MTP filter programmed with no board exception, provided the MTP's ASC is seen halted. That would make #430 unnecessary. Worth trying before #430 goes further.

CI is green (14/14) and the commit has a human Signed-off-by.

HW row: J715 on the default command line with the exact head, booted both through U-Boot and directly from Stage 1 (no U-Boot). Pass: the dapf log shows each requested consumer programmed or preserved; the keyboard, trackpad and AOP microphone work; 0 failed units, 0 new kernel errors. Plus a J713 no-regression boot once the list is dropped.

Assisted-by: LLM (Claude:Opus 5.5)

@kazuhidet kazuhidet changed the title dapf: hand off the J715's DAPF state like the J713's dapf: take the T8132 handoff from the tree, not a board list Nov 21, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Re-reviewed at 33a7632. The blocker is fixed: the board list is gone and every T8132 tree goes through dapf_init_j713(), which does nothing unless /chosen names the consumers to hand off. Using dapf-halted-handoff for the J715's MTP (with aurora-silicon/linux#2745) instead of #430 is the right call, thanks for closing that.

The code change is small and right. What it changes in practice is the part you flagged: every T8132 tree that includes t8132-jxxx.dtsi now gets the AOP and PMP handoff, and every one that includes t8132-laptop.dtsi also gets the MTP. Before this, only the J713 and J604 did. Rows that would cover it before merge:

  • J713 on this head (the path it already took, so a no-change check: dapf log, keyboard/trackpad, AOP microphones).
  • One desktop T8132 (the Mac mini, J773g), which takes the AOP/PMP handoff for the first time: the dapf log shows each named consumer programmed or preserved, and no new DART or AOP faults.
  • Your J715 row is on 26.6.2. If the J715 can also boot the 27.2 firmware, one boot there would show the handoff is independent of the firmware version.

Merge order: this and linux#2745 belong together; with linux#2745 alone the J715 keeps its old MTP fault.

Assisted-by: LLM (Claude:Opus 5.5)

@kazuhidet

Copy link
Copy Markdown
Contributor Author

Thanks for the re-review.

On the rows:

  • J715 on 27.2: I can't do this one. This unit stays on OS firmware 26.6.2, and I won't change its firmware or stage 1 for a test. Another J715 owner on 27.x could run it.
  • J715 through U-Boot: being prepared for arm64: dts: apple: t8132-j715: hand the MTP over as a halted consumer linux#2745 (aura with this PR, U-Boot, then Linux). It will also be a second J715 boot path for this PR, and I'll post the dapf log here as well.
  • J713 and a desktop T8132 (J773g): I have neither. The J713 row is yours. For the mini, someone with a J773g would need to run this head.

Agreed on the merge order with aurora-silicon/linux#2745. I've stated it in that PR's description.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review at 33a76325753aa7acfac5d1a5e5c812e1143fbc1a:

0 code/policy/attribution blockers.

  • §1 (No model gating): Good fix—dropping the hardcoded {"apple,j713", "apple,j604"} board list in src/dapf.c:846-855 lets /chosen's linux-enablement-mac,dapf-handoff / dapf-power-on-handoff / dapf-halted-handoff contract in dapf_init_j713() decide across all T8132 trees while preserving firmware state when the property is absent.
  • §2 (Production-ready), §3 (Code correctness & safety), §4 (Attribution — human author/committer + Signed-off-by only), §6 (Naming): all clean.

Holding approval only for remaining CI & §5 verification items:

  1. CI on live head 33a76325: all 6 workflows (format-check, build, stage1-size, aurora-agent-policy, test, esp-stage2-size) are currently action_required (awaiting maintainer workflow approval) and have not yet produced green results on this head.
  2. §5 Hardware rows:
    • J713 no-regression boot on this head (dapf log, keyboard/trackpad, AOP microphones, 0 failed units / 0 SELinux denials / 0 new kernel errors).
    • Desktop T8132 (e.g. J773g Mac mini) boot, since t8132-jxxx.dtsi defines dapf-handoff for /arm-io/aop and /arm-io/pmp and desktop T8132 boards will take this path for the first time (confirm dapf log and 0 new DART/AOP faults).
    • J715 U-Boot boot path log (noting you're preparing it alongside aurora-silicon/linux#2745) plus regression counts (0 failed units / 0 SELinux denials / 0 new kernel errors).

(Minor non-blocking observation: dapf_init_j713() and its log message still say J713; fine to leave for a follow-up rename.)

Assisted-by: LLM (Gemini 4 Neon)

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Approved the 6 fork CI workflow runs on 33a76325. Note that aurora-agent-policy failed only because this branch predates the main policy update in #428 (f3c1f9a4); a rebase onto current main will clear that check.

Assisted-by: LLM (Gemini 4 Neon)

kazuhidet added a commit to kazuhidet/linux that referenced this pull request Nov 22, 2026
Without U-Boot (m1n1 stage 1 -> aura -> Linux), nothing keeps the
J715's MTP running, so Linux cold-starts it. As on the J604, name
/arm-io/mtp in linux-enablement-mac,dapf-halted-handoff so the loader
programs its DART filter as for a halted consumer, and put the MTP and
its HID on DART stream 0 (streams 1 to 3 remapped to 0) instead of the
stream 1 the J713's running MTP is handed over on.

Before this, the MTP firmware's first access faulted with "CTE invalid"
and the keyboard and trackpad never came up.

With U-Boot in the chain, U-Boot has to leave the MTP alone, as on the
J604: if it starts the MTP for its keyboard, it stops it again before
Linux, and the firmware crashes on Linux's second start. Linux still
finds it halted on stream 0. A boot that hands the MTP over running, as
the J713 does, would need the J713's stream 1 layout instead. Neither
stage 1 -> aura -> Linux on 26.6.2 nor U-Boot with the J715 in its
keyboard skip list does that, and it has not been tested.

Tested on a J715 with OS firmware 26.6.2 and aura main plus
aurora-silicon/aura#429: the MTP says hello, and the keyboard and
trackpad work, with no DART faults. Through U-Boot aurora-wip with the
J715 in that skip list: the same. Through U-Boot aurora-wip as is: the
MTP firmware crashes as on the J604.

Signed-off-by: Kazuhide Takahashi <kazuhide.t@linux-powered.com>
@kazuhidet

Copy link
Copy Markdown
Contributor Author

The second J715 boot path is done: stage 1 → this aura → U-Boot → Linux, OS firmware 26.6.2. The aura is the same build as in my first row (main 58e712b + this change, plus the same local-only parts), with the aurora-silicon/linux#2745 tree. U-Boot is aurora-silicon/u-boot aurora-wip 5445237f.

  • Linux sees /chosen as this PR leaves it: dapf-handoff = /arm-io/aop /arm-io/mtp /arm-io/pmp and dapf-halted-handoff = /arm-io/mtp.
  • No DART faults in either boot. CPUs 0-9, and NVMe and the root are as in a direct boot.
  • With U-Boot leaving the MTP alone (apple,j715 in its keyboard skip list, input: apple_mtp_kbd: leave an MTP handed to the OS halted alone u-boot#69): "MTP Says Hello", and the keyboard and trackpad work, as in the direct boot.
  • With aurora-wip as is, U-Boot starts the MTP for its keyboard and stops it before Linux. The firmware then crashes on Linux's start, as on the J604 (input: apple_mtp_kbd: leave the J604's MTP to Linux u-boot#44). That is U-Boot's side, not this PR's: Linux still found the MTP halted, and the halted filter held.

I promised the dapf log here, but I don't have it. aura's lines went only to the screen, and this run recorded the U-Boot and Linux sides, not aura's. If you need it, I can capture it from the screen on the next boot.

Still not covered by me: the J713, the J773g, and a J715 on 27.x.

kazuhidet added a commit to kazuhidet/linux that referenced this pull request Nov 22, 2026
Without U-Boot (stage 1 -> aura -> Linux), nothing keeps the
J715's MTP running, so Linux cold-starts it. As on the J604, name
/arm-io/mtp in linux-enablement-mac,dapf-halted-handoff so the loader
programs its DART filter as for a halted consumer, and put the MTP and
its HID on DART stream 0 (streams 1 to 3 remapped to 0) instead of the
stream 1 the J713's running MTP is handed over on.

Before this, the MTP firmware's first access faulted with "CTE invalid"
and the keyboard and trackpad never came up.

With U-Boot in the chain, U-Boot has to leave the MTP alone, as on the
J604: if it starts the MTP for its keyboard, it stops it again before
Linux, and the firmware crashes on Linux's second start. Linux still
finds it halted on stream 0. A boot that hands the MTP over running, as
the J713 does, would need the J713's stream 1 layout instead. Neither
stage 1 -> aura -> Linux on 26.6.2 nor U-Boot with the J715 in its
keyboard skip list does that, and it has not been tested.

Tested on a J715 with OS firmware 26.6.2 and aura main plus
aurora-silicon/aura#429: the MTP says hello, and the keyboard and
trackpad work, with no DART faults. Through U-Boot aurora-wip with the
J715 in that skip list: the same. Through U-Boot aurora-wip as is: the
MTP firmware crashes as on the J604.

Signed-off-by: Kazuhide Takahashi <kazuhide.t@linux-powered.com>
@kazuhidet

Copy link
Copy Markdown
Contributor Author

The dapf lines I owed here are below, from a third J715 boot: stage 1 → aura → U-Boot → Linux, OS firmware 26.6.2.

The caveats come first:

  • Not a log. The lines were transcribed from a video of the screen, from overlapping frames of a fast scroll. Timestamps and wrapping were removed. In the fourth line, the name dart-pmp is uncertain because the text overlapped.
  • Possibly incomplete. No /arm-io/aop line was seen in the frames read, and earlier parts of the scroll were not searched. That doesn't show the AOP was skipped.
  • Not upstream main. The aura is the same build as my first row: main 58e712b + this change, plus the local-only parts (the J715 AOP/ATC test gates, and f0c15a1 reverted). The DT is the arm64: dts: apple: t8132-j715: hand the MTP over as a halted consumer linux#2745 tree, with u-boot,verbose added to /chosen.
dapf: Programming /arm-io/dart-mtp for the halted /arm-io/mtp
dapf: Programmed 9 T8132 DAPF slices for /arm-io/dart-mtp
dapf: Preserving requested consumer /arm-io/pmp in the active filter state
dapf: No T8132 DAPF instance for /arm-io/dart-pmp; preserving filter state
dapf: Skipping /arm-io/dart-isp; consumer /arm-io/isp is not requested for handoff

As read, these match what this PR intends:

  • The MTP gets the halted filter.
  • The PMP is preserved as requested.
  • The ISP, which /chosen doesn't name, is skipped.

A console capture would be better evidence. I can't get one on this Mac without a serial setup, so I'll leave that row to someone with one.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review against pre-pr-checklist.md (§1–§6) at 33a76325753aa7acfac5d1a5e5c812e1143fbc1a: REQUEST_CHANGES.

Code & Attribution (§1 / §2 / §3 / §4 / §6)

  • src/dapf.c:846-855 is clean: dropping the hardcoded {"apple,j713", "apple,j604"} board list and letting dapf_init_j713() decide from /chosen's linux-enablement-mac,dapf-handoff / dapf-halted-handoff properties satisfies §1 cleanly while preserving firmware state when the property is absent.
  • Commit 33a76325753a carries human author/committer + human Signed-off-by: only, zero AI trailers.

Blockers

  1. CI failure — test / Pytest (ubuntu-latest + gcc) (tests/python/test_j713_dapf_instance.py:123):
    • Removing the only call to fdt_node_check_compatible() in src/dapf.c breaks the -Wall -Wextra -Werror host test build in tests/python/test_j713_dapf_instance.py::test_j713_instance_and_power_flow:
      dapf-instance.c:106:12: error: ‘fdt_node_check_compatible’ defined but not used [-Werror=unused-function]
      
    • This failure also cancelled the remaining 3 pytest matrix legs (ubuntu-latest + llvm, macos-26 + llvm-brew, macos-15 + llvm-brew).
    • Fix: Remove the unused fdt_node_check_compatible() stub at tests/python/test_j713_dapf_instance.py:123-124 (and ideally add a dapf_init_fdt((void *)1) check covering both handoff=true and handoff=false).
  2. CI failure — aurora-agent-policy / policy:
    • Fails because the branch base (58e712b9) predates #428 (f3c1f9a4, canonical .github/aurora/AGENTS.md on main). Rebasing onto current main will clear this check.
  3. §5 (Evidence — remaining cross-board T8132 rows before merge):
    • Thanks for the third J715 U-Boot boot and transcribed screen DAPF lines (11:10:08Z) — those match dapf_init_j713()'s intended behavior on J715 (note that /arm-io/aop is intentionally skipped silently in dapf_init_j713() at src/dapf.c:773 since kboot handles AOP's DAPF separately).
    • Because this change activates dapf_init_j713() for every T8132 tree including t8132-jxxx.dtsi / t8132-laptop.dtsi, and the J715 run carried local-only patches without regression counts (0 SELinux denials / 0 failed units / 0 new kernel errors), merge still needs clean exact-head hardware rows (from maintainers/hardware owners, since you only have a J715 on 26.6.2) for:
      • J713 no-regression boot on the rebased head (dapf log, keyboard/trackpad, AOP mics, regression counts);
      • Desktop T8132 (e.g. J773g Mac mini) taking the AOP/PMP handoff for the first time (dapf log, 0 new DART/AOP faults, regression counts).
    • Coordinate merge order with aurora-silicon/linux#2745.

Assisted-by: LLM (Gemini 4 Neon)

@kazuhidet

Copy link
Copy Markdown
Contributor Author

Thanks for the re-review. Updated:

  1. Host test: the unused fdt_node_check_compatible() stub is gone. The test now also runs dapf_init_fdt() on T8132:

    • with the handoff property, it reaches dapf_init_j713();
    • with handoff=false, it returns 0 and touches nothing;
    • with no tree, it returns 0 and touches nothing.

    A new control ("tree decides", which replaces the dapf_init_j713() call with return 0;) fails as it should.

  2. Policy check: rebased onto current main (56299352), still one signed commit. The commit message now mentions the test change.

Checked locally on the rebased head:

  • pytest tests/python tests/test_t8122_gpu_reader.py tests/test_t8122_gpu_resources.py: 863 passed, 28 skipped.
  • aura builds with clang/lld 21.
  • clang-format --dry-run -Werror src/dapf.c is clean. (make format-check with my local clang-format 21 also flags src/sptm_virt_s2r.c from main, which this PR doesn't touch. CI uses 20.1.8.)

§5 counts for the J715 rows (stage 1 → this aura → Linux, and the same through U-Boot):

  • SELinux: not applicable, since this install has no SELinux.
  • Failed units: 2 in every boot, the same with and without this change. Both are local services of this install (j713-owner-assets, m4-j715-backlight).
  • Kernel errors: no new ones. The set is the same as without this change: avd probe -2, hid-generic … no listeners, and, only with the older aura, external DCP not handed over.

The J713 and J773g rows are still open; I can't run either.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Re-checked at 67755d7. The src/dapf.c change is the same as at 33a7632, now on current main. The test change is right: dapf_init_fdt() with the property reaches dapf_init_j713(), without it or without a tree it returns 0 and preserves the filter state, and the new "tree decides" control fails as it should. tests/python/test_j713_dapf_instance.py passes here at this head. The six workflows on this head are waiting for approval to run.

From my last review, merge order with aurora-silicon/linux#2745 is settled. Two rows are still missing before merge:

  • J713 at this head, on 27.2 firmware, so the same boot also answers the firmware-version question your J715 can't: dapf lines, keyboard/trackpad, AOP microphones, failed units, new kernel errors.
  • A desktop T8132 (J773g). It gets the AOP/PMP handoff for the first time through t8132-desktop.dtsi -> t8132-jxxx.dtsi. Pass: the dapf lines show each named consumer programmed or preserved, and there are no new DART or AOP faults. This one needs a J773g owner.

Not for this PR: the same J713/J604 board lists are still in kboot.c:9735 and :10593, kboot_atc.c:947 and pcie_fdt.c:24. Those are why your J715 needed local AOP/ATC gates. #113 covers the kboot ones.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formal adversarial pre-PR checklist (§1–§6) re-review at 67755d70e92e2e1daecba8603040bc372a06a75b: REQUEST_CHANGES.

Status Summary

  • Superseded? No (src/dapf.c:848 on main still gates dapf_init_j713() on {"apple,j713", "apple,j604", NULL}).
  • Stage 1 impact (§3): Yes — src/dapf.c (dapf.o) is unconditionally in OBJECTS in Makefile (main line 255) and reachable from kboot_boot() in Stage 1 (RELEASE=1 CHAINLOADING=1).
  • Code, Tests & Attribution (§1–§4, §6): Clean — 0 code or attribution blockers.
    • All prior code/test/rebase blockers from 33a76325753a are fixed: src/dapf.c cleanly drops the board list and defers to /chosen's linux-enablement-mac,dapf-handoff contract (return fdt ? dapf_init_j713((void *)fdt) : 0;); tests/python/test_j713_dapf_instance.py drops the unused fdt_node_check_compatible() stub, adds dapf_init_fdt() coverage (handoff present, absent, and NULL tree) plus the "tree decides" negative control; branch is rebased onto post-#428 main (56299352, mergeable cleanly); single commit 67755d70e92e has human author/committer + human Signed-off-by: only, zero AI trailers.
    • Thanks also for posting the J715 §5 regression counts (SELinux N/A, 2 unchanged local failed units, 0 new kernel errors).

Remaining Blockers (CI & §5 Evidence)

  1. Live CI not yet green on 67755d70e92e:
    • All 6 workflows (build, test, format-check, stage1-size, esp-stage2-size, aurora-agent-policy) are currently action_required on 67755d70e92e and must pass (including stage1-size since dapf.o is linked into Stage 1).
  2. §5 Cross-board T8132 hardware evidence (maintainer / hardware-owner rows):
    • Because this change activates dapf_init_j713() for every T8132 tree carrying dapf-handoff (t8132-jxxx.dtsi and t8132-laptop.dtsi), and the J715 runs were on an older base (58e712b9) with local-only patches, merge still requires clean exact-head (67755d70e92e) hardware rows for:
      • J713 no-regression boot (ideally on 27.2 firmware to cover firmware independence: dapf log, keyboard/trackpad, AOP microphones, regression counts);
      • Desktop T8132 (e.g. J773g Mac mini) taking the AOP/PMP handoff via t8132-jxxx.dtsi for the first time (dapf log, 0 new DART/AOP faults, regression counts).
    • Coordinate merge order with aurora-silicon/linux#2745 as already noted.

Assisted-by: LLM (Gemini 4 Neon)

@kazuhidet

Copy link
Copy Markdown
Contributor Author

As the review says, this change makes dapf_init_j713() run for every T8132 tree that carries linux-enablement-mac,dapf-handoff. So far it has only been tested on a J715, on an older base with local test gates.

Could someone boot 67755d70e92e on one of these?

  • J713 (M4 Air 13-inch), ideally on 27.2 firmware. Report:
    • the aura dapf: lines;
    • that the keyboard and trackpad work;
    • that the AOP microphones work;
    • the regression counts.
  • Desktop T8132 (e.g. J773g Mac mini), which takes the AOP/PMP handoff through t8132-jxxx.dtsi for the first time. Report:
    • the aura dapf: lines;
    • that there are no new DART or AOP faults in the kernel log;
    • the regression counts.

What to expect:

  • J713: the dapf: lines should match a boot without this change, since the J713 is already in the old board list.
  • Desktop T8132: the handoff runs there for the first time, so its dapf: lines and the absence of new faults are the evidence that matters.

@RyanTheTide, @erikwb (J713), @sithglan: is a J773g in reach? Thanks in advance to whoever can.

@sithglan

sithglan commented Nov 24, 2026 via email

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) needs-hw-row No hardware row at the PR head (bot) labels Nov 24, 2026
@github-actions github-actions Bot added needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks required sections (bot) ci-failing A check failed at the PR head (bot) labels Nov 24, 2026
dapf_init_fdt() called dapf_init_j713() only for the J713 and the J604.
dapf_init_j713() already does nothing unless /chosen carries
linux-enablement-mac,dapf-handoff, and it hands off only the consumers
that property names (and programs those in dapf-halted-handoff as halted
consumers). The board list adds nothing beyond the property, and every
other T8132 Mac has to be added to it by hand.

Drop the list and call dapf_init_j713() on every T8132 tree. A tree
without the property keeps today's behaviour: the firmware's filter
state is preserved.

The host test drops its fdt_node_check_compatible() stub, which nothing
calls any more, and now runs dapf_init_fdt() itself on T8132: with the
property it reaches dapf_init_j713(), without it or without a tree it
changes nothing, and a control that bypasses dapf_init_j713() fails.

Tested on a J715 (15-inch M4 Air) with OS firmware 26.6.2, with the
J715 tree naming /arm-io/mtp in dapf-halted-handoff as the J604's does:
the MTP is cold-started by Linux, and the keyboard, trackpad, AOP
microphones, display, GPU and speakers all come up.

Signed-off-by: Kazuhide Takahashi <kazuhide.t@linux-powered.com>
@kazuhidet
kazuhidet requested review from a team as code owners November 24, 2026 23:28
@kazuhidet

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (4dc0584f) and force-pushed as 746c4cd98c07. The lines and the commit message are the same as 67755d70e92e, and the cherry-pick applied without conflicts.

  • Why: the policy check failed because main changed .github/aurora/AGENTS.md after this branch's old base, so the check counted that file as changed by this PR. The PR itself touches only src/dapf.c and tests/python/test_j713_dapf_instance.py.
  • Checked on the rebased tree: test_j713_dapf_instance.py passes. I haven't rerun the full test suite or booted the rebased commit; the J715 row above is from the earlier base.

The request for a J713 or desktop T8132 row is unchanged. A boot of 746c4cd98c07 would do.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge readiness at 746c4cd9: not ready yet

Check Detail
CI at head ok 17 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes no requested by DjDeveloperr
Hardware row at head ok in the PR body at 746c4cd9
Conflicts ok none
PR text ok Risk: two-way · M4 (T8132) Macs whose tree carries linux-enablement-mac,dapf-handoff: the laptops and, through t8132-jxxx.dtsi, the desktops

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 24, 2026
@kazuhidet

Copy link
Copy Markdown
Contributor Author

A note on the readiness summary: it counts my rebase comment above as a hardware row at 746c4cd9. It isn't one. That comment only reports the rebase, and it says the rebased commit hasn't been booted.

Hardware evidence so far:

The request for a J713 or desktop T8132 (J773g) row at 746c4cd98c07 still stands.

@github-actions github-actions Bot added blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-template PR body lacks required sections (bot) labels Nov 25, 2026

Copy link
Copy Markdown
Contributor

J773g (M4 Mac mini, T8132, firmware 27.2) Stage 2 row at 746c4cd98c07 passed.

The Mini needs #383 for display handoff on 27.2. I cleanly merged its head 8b3ba98e into 746c4cd98c07 locally. The full #429 diff has the same stable patch ID before and after the merge. Stage 1 chainloaded 1.0.0b17-g2f0e1a94 and kbooted the existing 7.3.0-ARCH-m4prod25d kernel and J773g DTB.

  • The DT names AOP and PMP in dapf-handoff. Stage 2 kept PMP active and preserved its filter state because the PMP DART has no DAPF bank. There were zero DAPF errors, and Linux reported that PMP firmware was ready.
  • Linux reached userspace over Wi-Fi (wld0). HDMI was connected, the display manager was active, /lib -> usr/lib, and there were 0 failed units. The G16G render node responded with 0 GPU recoveries and 0 hang kills.
  • The 22 kernel error entries matched the restored aura-383-r3-stage2.bin baseline exactly, including the existing AOP missing-firmware-region probe error. The Mini is back on the baseline Stage 2 and kernel with the same idle health checks passing.

The targeted test_j713_dapf_instance.py host test also passed.

@DjDeveloperr
DjDeveloperr merged commit 2d31c3d into aurora-silicon:main Nov 25, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:m4 Macs affected, from Merge risk (bot) changes-requested A reviewer requested changes (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants